package models

import (
	"gorm.io/gorm"
	"time"
)

type Comment struct {
	Id        int64          `gorm:"column:id;type:bigint;primaryKey;not null;" json:"id"`
	UserId    uint64         `gorm:"column:user_id;type:bigint UNSIGNED;not null;" json:"user_id"`
	EssayId   uint64         `gorm:"column:essay_id;type:bigint UNSIGNED;not null;" json:"essay_id"`
	Chat      string         `gorm:"column:chat;type:varchar(100);not null;" json:"chat"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:date;default:NULL;" json:"deleted_at"`
}
